package nightlife_reservation.Controllers;




import java.util.Date;
import nightlife_reservation.Dao.IRegisterDao;
import nightlife_reservation.Dao.RegisterDao;
import nightlife_reservation.Models.Register;
import nightlife_reservation.Exceptions.DaoException;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author maraki
 */
public class MockRegisterDaoSuccess implements IRegisterDao {
    
    public MockRegisterDaoSuccess() {
    }
    
    @BeforeClass
    public static void setUpClass() {
    }
    
    @AfterClass
    public static void tearDownClass() {
    }
    
    @Before
    public void setUp() {
    }
    
    @After
    public void tearDown() {
    }

    
    @Override
    public Register createRegister(String UserId, String StoreName, String Name, String Surname, String Phone, String Email, String Address, String City, String Floors, String Position, String Parking, String ParkingSpots, String Dates, String Username, String Password, String Repass, String dateString) throws DaoException {
        Register reg=new Register();
        reg.setAddress("ntan 11");
        reg.setCity("thessaloniki");
        reg.setDates(Dates);
        reg.setEmail("ntanidou@gmail.com");
        reg.setFloors("2");
        reg.setId("505");
        reg.setName("Maria");
        reg.setParking("YES");
        reg.setParkingSpots("150");
        reg.setPassword("3062");
        reg.setPhone("6398872215");
        reg.setPosition("190");
        reg.setRepass("3062");
        reg.setStoreName("night");
        reg.setSurname("ntanidou");
        reg.setUsername("ntan");
        
        return reg;
    }
    
    
    /**
     * Test of createRegister method, of class RegisterDao. 
     * @throws nightlife_reservation.Exceptions.DaoException
     */
    @Test
    public void CreateRegister() throws DaoException {
        
        
        System.out.println("createRegister");
        String Id = "";
        String StoreName = "";
        String Name = "";
        String Surname = "";
        String Phone = "";
        String Email = "";
        String Address = "";
        String City = "";
        String Floors = "";
        String Position = "";
        String Parking = "";
        String ParkingSpots = "";
        String Dates = "";
        String Username = "";
        String Password = "";
        String Repass = "";
        String dateString = "";
        RegisterDao instance = new RegisterDao();
        Register expResult = null;
        Register result = null;
        assertEquals(expResult, result);
        
        
    }

    /**
     *
     * @param UserId
     * @param StoreName
     * @param Name
     * @param Surname
     * @param Phone
     * @param Email
     * @param Address
     * @param City
     * @param Floors
     * @param Position
     * @param Parking
     * @param ParkingSpots
     * @param Dates
     * @param Username
     * @param Password
     * @param Repass
     * @param dateString
     * @return
     * @throws DaoException
     */
    
}
